import {
  http
} from '@/utils/request.js'

// 已分享
export const getActivityShareList = (data) => {
  return http.middleware({
    method: 'GET',
    url: '/activity/shareList',
	data,
	custom: {
		loading: true
	}
  })
}

// 查看过
export const getActivityViewList = (data) => {
  return http.middleware({
    method: 'GET',
    url: '/activity/viewList',
	data,
	custom: {
		loading: true
	}
  })
}

// 活动详情
export const getActivityDetail = (params) => {
  return http.middleware({
    method: 'GET',
    url: '/activity/detail',
	params,
	custom: {
		loading: true
	}
  })
}

// 统计
export const getActivityStatistics = (params) => {
  return http.middleware({
    method: 'GET',
    url: '/activity/statistics',
	params,
  })
}

// 弹幕
export const getActivityDanmu = (params) => {
  return http.middleware({
    method: 'GET',
    url: '/activity/danmu',
	params,
  })
}

// 创建活动
export const cearteActivityApi = (data) => {
  return http.middleware({
    method: 'POST',
    url: '/activity/infoSubmit',
	data,
  })
}

// 购买过的活动列表
export const getActivityJoinSelect = () => {
  return http.middleware({
    method: 'GET',
    url: '/activity/joinSelect',
  })
}
